<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;

class ActController extends Controller
{
	//首页
    public function getIndex()
    {
        $cate = DB::table('seckillglobal')
        ->where('mustsee','1')
        ->orderBy('id','desc')
        ->get();

        $arr = DB::table('seckillglobal')
        ->where('mustsee','0')
        ->orderBy('id','desc')
        ->get();

    	return view('Home.act.index',['cate'=>$cate,'arr'=>$arr]);
    }
    public function getHd($id)
    {
        $cate = DB::table('seckillglobal')
        ->where('seckillid',$id)
          ->orderBy('id', 'desc')
          ->get();
        return view('Home.act.hd',['cate'=>$cate]);
    }
}